package com.testing.class9;

public class Mamals extends Animal{

    public String kind ="哺乳动物";

    public String legs="哺乳动物用腿跑路";

    public Mamals(){
//        System.out.println(
//                "哺乳动物是胎生的"
//        );
    }

    public Mamals(String name){
//        System.out.println("名字是"+name+"的哺乳动物");
    }

    public void birth(){
        System.out.println("哺乳动物是胎生动物");
    }

    public void eat(){
        System.out.println("哺乳动物吃杂食");
    }

    public static void sleep(){
        System.out.println("哺乳动物闭着眼睛睡觉");
    }

}
